<div id="luckuser">
	
	<table width="100%" valign="top" border="0" cellpadding="0" cellspacing="0">
		<?php
		if(!empty($recent_data)){
			foreach($recent_data as $value)
			{
			    if (empty($value['g_lucks']['product_info']['g_name'])) {
			        continue;
			    }
			    $how_get = $value['g_lucks']['how_get'];
			    $product_name = $value['g_lucks']['product_info']['g_name'];
			    $product_link = (($how_get=='zhuan')?'javascript:showProduct(':'javascript:showChangeProduct(').$value['g_lucks']['pid'].')';

		?>
		<tr>
		
		
			<td height="38" width="40" align="center" valign="middle">
			<a href="<?SystemProperties::$app_url?>/user/goProfile/<?=$value['g_lucks']['uid']; ?>" target="_blank"><img src="<?php echo $value['g_users']['g_head']; ?>" border="0" width="25" height="25" /></a>
			</td>
			<td align="left">
			<span class="one_line_a"><a href="<?SystemProperties::$app_url?>/user/goProfile/<?=$value['g_lucks']['uid']; ?>" target="_blank"><?php echo $value['g_users']['username']; ?></a> <?=date('m-d',strtotime($value['g_lucks']['time']))?></span>
			<span class="one_line_a"><a class="one_line_a" href="<?=$product_link?>" style="color:#695e4a"><?=$how_get == 'zhuan'?'赚得':'换得'?> <?=$product_name?></a></span>
			</a></td>
			
		</tr>						
		<?php
			}
		}
		?>	
		<tr>
		<td colspan="2" style="padding-top:5px;">
        <?php 
        $next_p = ($page>=$totalp)?$totalp:$page+1;
        $prev_p = ($page<=1)?1:$page-1;
        ?>
        <div style="text-align:center">
        <a href="javascript:loadLuckUser(<?=$prev_p?>)"><img src='<?=SystemProperties::$path?>/image/new/goprev.gif' border='0' /></a>
        <b>&nbsp;<?=$page?>/<?=$totalp?>&nbsp;</b>
        <a href="javascript:loadLuckUser(<?=$next_p?>)"><img src='<?=SystemProperties::$path?>/image/new/gonext.gif' border='0'/></a>
        </div>		
		</td>
		</tr>				
	</table>
	</div>
